import request from '@/utils/request'

// 查询套餐实例列表
export function listPackageInst(query) {
    return request({
        url: '/business/package/inst/list',
        method: 'get',
        params: query
    })
}

// 查询套餐实例详细
export function getPackageInst(id) {
    return request({
        url: '/business/package/inst/' + id,
        method: 'get'
    })
}

// 新增套餐实例
export function addPackageInst(data) {
    return request({
        url: '/business/package/inst',
        method: 'post',
        data: data
    })
}

// 修改套餐实例
export function updatePackageInst(data) {
    return request({
        url: '/business/package/inst',
        method: 'put',
        data: data
    })
}

// 删除套餐实例
export function delPackageInst(ids) {
    return request({
        url: '/business/package/inst/' + ids,
        method: 'delete'
    })
}

// 根据客户ID查询套餐实例
export function listPackageInstByCustomerId(customerId) {
    return request({
        url: '/business/package/inst/customer/' + customerId,
        method: 'get'
    })
}